﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 迪米特原则
{
    public class BranchOfficeEmployee
    {
        public int Id { get; set; }
    }
    public class BranchOfficeManager
    {
        public List<BranchOfficeEmployee> GetEmployees()
        { 
        List<BranchOfficeEmployee> headOffices = new List<BranchOfficeEmployee>();
            for (int i = 0; i < 10; i++)
            {
                BranchOfficeEmployee headOfficeEmployee = new BranchOfficeEmployee();
                headOfficeEmployee.Id = i;
                headOffices.Add(headOfficeEmployee);
            }
            return headOffices;
        }
        public void Print()
        {
          var datas=  GetEmployees();
            Console.WriteLine("分公司公司员工Id分别是：" );
            foreach (var item in datas)
            {
                Console.WriteLine(+item.Id);
            }
        }
    }
}
